package com.ffcs.web.model.entity;
// default package

import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * CollectNews entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "wechat_CollectNews")
public class CollectNews implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer picNewsId;
	private Integer userId;
	private Date addTime;
	private Short status;
	private Short type;

	// Constructors

	/** default constructor */
	public CollectNews() {
	}

	/** full constructor */
	public CollectNews(Integer picNewsId, Timestamp addTime, Short status) {
		this.picNewsId = picNewsId;
		this.addTime = addTime;
		this.status = status;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "picNewsId", nullable = false)
	public Integer getPicNewsId() {
		return this.picNewsId;
	}

	public void setPicNewsId(Integer picNewsId) {
		this.picNewsId = picNewsId;
	}
	
	
	@Column(name = "userId", nullable = false)
	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "addTime", nullable = false, length = 19)
	public Date getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	@Column(name = "status", nullable = false)
	public Short getStatus() {
		return this.status;
	}

	public void setStatus(Short status) {
		this.status = status;
	}
	
	@Column(name = "type", nullable = false)
	public Short getType() {
		return this.type;
	}
	
	public void setType(Short type) {
		this.type = type;
	}

}